(function($){
	$(function(){
		var resizePage = (function () {
            $("body,.pop-page").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                popTopH = $(".pop-top").outerHeight(true),
                titleH = $(".ul_head").outerHeight(true),
                popFootH = $(".pop-foot").outerHeight(true),
                $ipBody = $(".top_ul_body");

            $ipBody.height(wh - popTopH - titleH - popFootH);
            return arguments.callee;
        })();

        $(window).resize(resizePage);
        //关闭弹出层
        $(".close-pop").on("click",function(e){
        	e.stopPropagation();
        	window.parent.$.popHide();
        })

        //挂载卷组飞出层 点击加选中样式
        $(".top_ul_body")
            .on("click",".ip-radio",function(e){
                e.stopPropagation();
                $(".li_tr").removeClass("active");
                $(this).closest(".li_tr").addClass("active");
            })
        //调用滚动条插件
        $(".product-nicescroll").niceScroll({
            cursorcolor: "#0099ff",
            autohidemode: false,
            cursorwidth: "8px",
            cursorborder: "0",
            cursorborderradius: "5px",
            railpadding: {
                right: 5,
                top: 1
            }
        });
	})
})(jQuery)
